package com.hoshino.momochi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hoshino.momochi.model.domain.BlogTag;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BlogTagMapper extends BaseMapper<BlogTag> {

    /**
     * 向 指定博客 bid 批量添加 标签
     *
     * @param bid
     * @param ids
     */
    void addListBlogTag(Long bid, List<Long> ids);

    /**
     * 删除 isDelete = 1 的数据
     */
    void delIsDeleteAsTrue();
}
